package com.aaa.qy127.service.impl;

import com.aaa.qy127.dao.TongJiDao;
import com.aaa.qy127.dao.impl.TongJiDaoImpl;
import com.aaa.qy127.service.TongJiService;

import java.util.List;
import java.util.Map;

public class TongJiServiceImpl implements TongJiService {
    TongJiDao tongJiDao = new TongJiDaoImpl();
    /**
     * 查询库存书籍类型和数量
     * @return
     */
    @Override
    public List<Map<String, Object>> gettype() {
        List<Map<String, Object>> gettype = tongJiDao.gettype();
        return gettype;
    }
    /**
     * 查询库存书籍名称和数量
     * @return
     */
    @Override
    public List<Map<String, Object>> getbook() {
        List<Map<String, Object>> getbook = tongJiDao.getbook();
        return getbook;
    }
    /**
     * 查询出库书籍名称和数量
     * @return
     */
    @Override
    public List<Map<String, Object>> getckbook() {
        List<Map<String, Object>> getckbook = tongJiDao.getckbook();
        return getckbook;
    }
    /**
     * 查询出库书籍类型和数量
     * @return
     */
    @Override
    public List<Map<String, Object>> getcktype() {
        List<Map<String, Object>> getcktype = tongJiDao.getcktype();
        return getcktype;
    }
    /**
     * 查询入库金额按月分组
     * @return
     */
    @Override
    public List<Map<String, Object>> getruku(String time) {
        List<Map<String, Object>> getruku = tongJiDao.getruku(time);
        return getruku;
    }
    /**
     * 查询出库金额按月分组
     * @return
     */
    @Override
    public List<Map<String,Object>> getchuuku(String time){
        List<Map<String, Object>> getchuuku = tongJiDao.getchuuku(time);
        return getchuuku;
    }
    /**
     * 查询订单金额按月分组
     * @return
     */
    @Override
    public List<Map<String, Object>> getdd(String time) {
        List<Map<String, Object>> getdd = tongJiDao.getdd(time);
        return getdd;
    }
}
